The following example demonstrates how to use the ::selection element to change the color of the selected text.